import fetch from '@/util/fetch'
// status
export function withdrawInfo(options) {
  return fetch({
    url: '/front/web/payment/withdrawInfo',
    method: 'post',
    headers: options && options.headers ? options.headers : {},
    data: (options && options.data) || {},
  })
}

export function wxWithdraw(options) {
  return fetch({
    url: '/front/web/payment/wxWithdraw',
    method: 'post',
    headers: options && options.headers ? options.headers : {},
    data: (options && options.data) || {},
  })
}

// checkUserIdentity
export function checkUserIdentity_post(options, operation) {
  return fetch({
    url: `app/seller/${operation}/checkUserIdentity`,
    method: 'post',
    headers: {
      'Content-Type': 'application/json',
      ...(options && options.headers ? options.headers : {}),
    },
    data: (options && options.data) || {},
  })
}
